projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
500c9db
)
gtk/gtkfilechoosernativeportal.c: Don't use g_autoptr()
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Mon, 11 Jul 2016 09:50:13 +0000
(17:50 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 13 Jul 2016 03:26:35 +0000
(11:26 +0800)
This code is also built by non-GCC/CLang compilers, so use the normal
ref/unref steps for the GVariant.
https://bugzilla.gnome.org/show_bug.cgi?id=768659
gtk/gtkfilechoosernativeportal.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechoosernativeportal.c
b/gtk/gtkfilechoosernativeportal.c
index 883861779b03a51ff1145d2c9242cfeccc186f5f..05dedaa225236fb7d827f0661ca68f099fd60750 100644
(file)
--- a/
gtk/gtkfilechoosernativeportal.c
+++ b/
gtk/gtkfilechoosernativeportal.c
@@
-100,7
+100,7
@@
response_cb (GDBusConnection *connection,
const char **uris;
int i;
GVariant *response_data;
-
g_autoptr (GVariant)
choices = NULL;
+
GVariant *
choices = NULL;
g_variant_get (parameters, "(u@a{sv})", &portal_response, &response_data);
g_variant_lookup (response_data, "uris", "^a&s", &uris);
@@
-115,6
+115,7
@@
response_cb (GDBusConnection *connection,
gtk_file_chooser_set_choice (GTK_FILE_CHOOSER (self), id, selected);
}
+ g_variant_unref (choices);
g_slist_free_full (self->custom_files, g_object_unref);
self->custom_files = NULL;
for (i = 0; uris[i]; i++)